package cn.lingyangwl.agile.member.assembly;

import cn.lingyangwl.agile.member.model.entity.MemberLevel;
import cn.lingyangwl.agile.member.model.rqrs.level.MemberLevelResp;
import cn.lingyangwl.agile.member.model.rqrs.level.MemberLevelSaveReq;
import cn.lingyangwl.agile.member.model.rqrs.level.MemberLevelUpdateReq;
import org.mapstruct.Mapper;

/**
 * 会员等级
 *
 * @author shenguangyang
 */
@Mapper(componentModel = "spring")
public interface MemberLevelAssembly {
  MemberLevelResp toLevelResp(MemberLevel source);
  
  MemberLevel toLevel(MemberLevelSaveReq source);
  
  MemberLevel toLevel(MemberLevelUpdateReq source);
}
